const server='http://localhost:7000'
// 订单状态
const orderStatus = {
    unpay: '未支付',
    payOk: '已支付',
    confirm: '已确认',
    finished: '已完成',
    cancel: '已取消',
    invalid: '已无效',
    reject: '已拒绝',
}
// 订单页的tabBar
const myOrderTab = () => {
    let orderTab = [{
        statusEN: 'all',
        statusCN: '全部',
    }]
    for (let key in orderStatus) {
        if (key != 'cancel' && key != 'invalid' && key != 'reject') {
            orderTab.push({
                statusEN: key,
                statusCN: orderStatus[key]
            })
        }
    }
    return orderTab
}
module.exports = {
    orderStatus,
    myOrderTab,
    server
}